#!/usr/bin/python

import re

f = open("passwd")
p = re.compile(r':')
for i in f: 
    if 100 <= int(p.split(i)[3]) < 1000:
        print(p.split(i)[3])
f.close()
